begintownscript;
variables;

body;

beginstate INIT_STATE;
	set_char_dialogue_pic(11,1922,0);
	enable_add_chars(1);
	set_crime_tolerance(3);
	set_name(21,"Liss");
	set_name(19,"Bubba");
	set_name(18,"Parry");
	set_name(8,"Smith");
	set_name(10,"Balu");
	set_name(6,"Esther");
	set_name(11,"Mayor Dumed");
	add_range_to_group(7,15,1);

	if (get_flag(3,7) == 0)	{
		force_instant_terrain_redraw();
		pause(2);
		message_dialog("Soon you approach your destination, and finding a sloped path downward, you walk into a wide valley.  A town is nearby, so you stop to get directions.","");
		set_flag(3,7,1);	}
break;

beginstate START_STATE;
	if (get_ran(1,0,100) < 2)
		text_bubble_on_char(22,"I'm a gaurd!");
	if (get_ran(1,0,100) < 2)
		text_bubble_on_char(22,"I gaurd things!");
	if (get_ran(1,0,100) < 2)
		text_bubble_on_char(11,"I hate paperwork...");
	if (get_ran(1,0,100) < 2)
		text_bubble_on_char(10,"...just modify the phase variance...");
	if (get_ran(1,0,100) < 2)
		text_bubble_on_char(10,"Where was that bottle again...?");
	if (get_ran(1,0,100) < 2)
		text_bubble_on_char(10,"Now where did those herbs go...?");
	if (get_ran(1,0,100) < 2)
		text_bubble_on_char(6,"The Great Fish is watching.");
	if (get_ran(1,0,100) < 2)
		text_bubble_on_char(6,"May the Great Fish guide us.");
	if (get_ran(1,0,100) < 2)
		text_bubble_on_char(8,"Now to smash it into shape...");
	if (get_ran(1,0,100) < 2)
		text_bubble_on_char(19,"Hullo.");
	if (get_ran(1,0,100) < 2)
		text_bubble_on_char(18,"Is there anything you have in mind?");
	if (get_ran(1,0,100) < 2)
		text_bubble_on_char(18,"Feel free to browse.");
	if (get_ran(1,0,100) < 2)
		text_bubble_on_char(20,"I'll save you, Rocky!");
break;

beginstate EXIT_STATE;
break;

beginstate 10;
	if (get_flag(0,4) == 0)	{
		activate_hidden_group(1);
		alert_char(1001);
		reset_dialog();
		add_dialog_str(0,"You suddenly become aware that you are being watched.  You see a glimpse of movement in the shadows, then a half dozen men step out of the darkness.",0);
		add_dialog_str(1,"One of them looks especially threatening as he pulls a long vicious knife from its sheath.  _Oy! I think we gots one!_ says a thug.  _Fell roight into our trap, di'in't they, boss?_  another chimes in.",0);
		add_dialog_str(2,"_Shut up, fools!_ snaps the lead man.  _We can't have the whole town hearing us!  Now, get to work!_  The sinister band readies their weapons.",0);
		run_dialog(1);
		set_flag(0,4,1);	}
break;

beginstate 11;
	message_dialog("You approach what appears to be some kind of chowdery soup dish... thing.  It does not look appetizing at all.  The smell emanating from it also indicates that it would not be tasty to consume.","");
break;

beginstate 12;
	if (get_flag(0,6) == 0)	{
		message_dialog("You enter to find the house completely rundown and filled with junk.  It has been a while since this house has been entered.","");
		set_flag(0,6,1);	}
break;

beginstate 13;
	if (get_flag(0,7) == 0)	{
		message_dialog("This is the room that the town has meetings in when there is a decision to be made.  It seems as if it has been unused for a while, from the look of things.","");
		set_flag(0,7,1);	}
break;

beginstate 14;
	if (get_flag(0,8) == 0)	{
		message_dialog("As you enter the store you hear the chime of a bell attached to the wall.  The ring of it brings the vendor to attention, and he smiles at you, waiting for you to request this or purchase that.","All around you are varying trinkets, hung on hooks, placed upon shelves, covering the wall so that you can hardly see it.  This is certainly a well-stocked store.");
		set_flag(0,8,1);	}
break;

beginstate 15;
	if (get_flag(0,13) == 0)	{
		message_dialog("You enter into a small house.  Apparently the sound of you entering was heard, for a voice sounds from behind the next door, _If you need me, I'm in the back room!_","Next you hear a crash of glass, accompanied by a loud _Oops!_");
		set_flag(0,13,1);	}
break;

beginstate 16;
	message_dialog("The book on this pedestal is filled with random notes concerning alchemical concoctions.  There are so many abbreviations used that you can't understand it.","");
break;